package model;

public class Level {
    /**
     * 会员等级
     */
    private String name;    //会员等级
    private int base;    //基线（积分到多少分会员升级）
    private double discount;    //折扣

    public Level(String name, int base, double discount) {
        this.name = name;
        this.base = base;
        this.discount = discount;
    }

    public String getName() {
        return name;
    }

    public void setLevel(String name) {
        this.name = name;
    }

    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return name ;
    }
}
